<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport"
          content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <title>移动办公</title>
    <!-- Path to Framework7 Library CSS-->
    <link rel="stylesheet" href="lib/framework7/css/framework7.ios.css">
    <link rel="stylesheet" href="lib/framework7/css/framework7.ios.colors.css">
</head>
<body>


<!-- Path to Framework7 Library JS-->
<script type="text/javascript" src="lib/framework7/js/framework7.js"></script>
<script type="text/javascript">
/*
    var clientType = getCt();

    function getCt() {
        var userAgentInfo = navigator.userAgent;
        var ct = 1;
        if (userAgentInfo.indexOf("Android")) {
            ct = 0;
        }else if(userAgentInfo.indexOf("iPhone")){
            ct = 1;
        }else if(userAgentInfo.indexOf("iPad")){
            ct = 1;
        }else if(userAgentInfo.indexOf("iPod")){
            ct = 1;
        }else {
            ct = 2;
        }
        return ct;
    }

    if(clientType==1){

        document.addEventListener("deviceready", function(){
            TrunPage.getUserName(function(data){
                if (data) {
                    transition.prevAll().hide();
                    myApp.showIndicator();
                    $$.getJSONP(SERVER_PATH + 'mobileLoginForIsh.do', {loginname: data}, function (json) {
                        myApp.hideIndicator();
                        if (json.code == 1) {
                            onLoginSuccess(json.results);
                        } else {
                            transition.prevAll().show();
                        }
                    });
                } else if (autoLoginBox.prop('checked')) {
                    button.click();
                }
            });
        }, false);
    }else{
        TrunPage.showToast("where1111");
        TrunPage.getUserName(function(data){
            TrunPage.showToast(data);
            if (typeof(data)!="undefined" && data.length > 0 ) {
                TrunPage.showToast(data+"111");
                transition.prevAll().hide();
                myApp.showIndicator();
                TrunPage.showToast(SERVER_PATH+"22222");
                $$.getJSONP(SERVER_PATH + 'mobileLoginForIsh.do', {loginname: data}, function (json) {
                    myApp.hideIndicator();
                    if (json.code == 1) {
                        onLoginSuccess(json.results);
                    } else {
                        transition.prevAll().show();
                    }
                });
            } else if (autoLoginBox.prop('checked')) {
                button.click();
            }
        });
    }
*/
    window.location='index.html?localname=yd';
</script>

</body>
</html>
